<template>
  <div>
    <table class="table table-bordered mt-3 mb-1">
      <tbody>
        <tr>
          <td class="font-weight-bold" data-font-bold="true" colspan="10">项目类型</td>
        </tr>
        <tr>
          <td width="50%" colspan="5">类型</td>
          <td width="50%" colspan="5">类型名称</td>
        </tr>
        <tr>
          <td colspan="5">{{ enumProjectType[related.project_type] }}</td>
          <td colspan="5">
            <span v-if="+related.project_type === 1">-</span>
            <span>{{ related.project_type_name }}</span>
          </td>
        </tr>
      </tbody>
    </table>
  </div>
</template>

<script>
import { enumProjectType } from '@/gov/plugins/enum'
export default {
  props: {
    related: {
      type: Object,
      default: () => {},
    },
  },
  data() {
    return {
      enumProjectType,
    }
  },
}
</script>
<style lang="scss" scoped>
@import '@/gov/components/creditFile/style.scss';
</style>
